package com.yc.txx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 天下行租车-车辆表-10
 * </p>
 *
 * @author xl
 * @since 2024-05-07
 */
@TableName("txx_car")
@Data
public class Car implements Serializable {

    private static final long serialVersionUID = 1L;

      /**
     * 编号
     */
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 品牌
     */
      private String brand;

      /**
     * 型号
     */
      private String model;

      /**
     * 封面图片
     */
      private String image;

      /**
     * 车辆介绍
     */
      private String intro;

      /**
     * 租赁价格: 元/天
     */
      private BigDecimal price;

      /**
     * 星级评分: 1~5
     */
      private Byte stars;

      /**
     * 状态: 在库,出库,维修
     */
      private String state;

      /**
     * 购入时间
     */
      private Timestamp intime;

  //关联查询
  @TableField(exist = false)
  private List<Image> photo;

  @TableField(exist = false)
  private String sort;

  @TableField(exist = false)
  private String sc;

  @TableField(exist = false)
  private List<String> images;

}
